import request from '@/utils/request'

// 查询基础设置列表
export function listAppSetting(query) {
  return request({
    url: '/yun/appSetting/list',
    method: 'get',
    params: query
  })
}

// 查询基础设置详细
export function getAppSetting(id) {
  return request({
    url: '/yun/appSetting/' + id,
    method: 'get'
  })
}

// 新增基础设置
export function addAppSetting(data) {
  return request({
    url: '/yun/appSetting',
    method: 'post',
    data: data
  })
}

// 修改基础设置
export function updateAppSetting(data) {
  return request({
    url: '/yun/appSetting',
    method: 'put',
    data: data
  })
}

// 删除基础设置
export function delAppSetting(id) {
  return request({
    url: '/yun/appSetting/' + id,
    method: 'delete'
  })
}
